\documentclass[12pt, a4paper]{memoir} % for a short document
\usepackage[french,english]{babel}

\usepackage [vscale=0.76,includehead]{geometry}                % See geometry.pdf to learn the layout options. There are lots.
%\geometry{a4paper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\OnehalfSpacing
% \setSingleSpace{1.05}
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{float}
\usepackage{fullpage}
\usepackage{mathptmx} % font = times
\usepackage{helvet} % font sf = helvetica
\usepackage[latin1]{inputenc}
\usepackage{relsize}
\usepackage{verbatim} 
\usepackage{listings} 
\usepackage{color}
%\usepackage{fancyhdr}
 
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
 
\lstset{ %
  language=Octave,                % the language of the code
  basicstyle=\footnotesize,           % the size of the fonts that are used for the code
  numbers=left,                   % where to put the line-numbers
  numberstyle=\tiny\color{gray},  % the style that is used for the line-numbers
  stepnumber=1,                   % the step between two line-numbers. If it's 1, each line will be numbered
  numbersep=5pt,                  % how far the line-numbers are from the code
  backgroundcolor=\color{white},      % choose the background color. You must add \usepackage{color}
  showspaces=false,               % show spaces adding particular underscores
  showstringspaces=false,         % underline spaces within strings
  showtabs=false,                 % show tabs within strings adding particular underscores
  frame=shadowbox,                   % adds a frame around the code
  rulecolor=\color{black},        % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
  tabsize=2,                      % sets default tabsize to 2 spaces
  captionpos=b,                   % sets the caption-position to bottom
  breaklines=true,                % sets automatic line breaking
  breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
  title=\lstname,                   % show the filename of files included with \lstinputlisting;
                                  % also try caption instead of title
  keywordstyle=\color{blue},          % keyword style
  commentstyle=\color{dkgreen},       % comment style
  stringstyle=\color{mauve},         % string literal style
  %escapeinside={\%*}{*)},            % if you want to add a comment within your code
  %morekeywords={*,...}               % if you want to add more keywords to the set
  morecomment=[l]{//},
  rulesepcolor=\color{gray},
  escapeinside={(*@}{@*)}
}


%Style des ttes de section, headings, chapitre
\headstyles{komalike}
\nouppercaseheads
\chapterstyle{dash}

%\fancypagestyle{plain}

\makeevenhead{headings}{\sffamily\thepage}{}{\sffamily\leftmark} 
\makeoddhead{headings}{\sffamily\rightmark}{}{\sffamily\thepage}
%\makeoddfoot{plain}{}{}{} % Pages chapitre. 
\makeheadrule{headings}{\textwidth}{\normalrulethickness}
%\renewcommand{\leftmark}{\thechapter ---}
\renewcommand{\chaptername}{\relax}
\renewcommand{\chaptitlefont}{ \sffamily\bfseries \LARGE}
\renewcommand{\chapnumfont}{ \sffamily\bfseries \LARGE}
\setsecnumdepth{subsection}


% Title page formatting -- do not change!
\pretitle{\HUGE\sffamily \bfseries\begin{center}} 
\posttitle{\end{center}}
\preauthor{\LARGE  \sffamily \bfseries\begin{center}}
\postauthor{\par\end{center}}

\newcommand{\jury}[1]{% 
\gdef\juryB{#1}} 
\newcommand{\juryB}{} 
\newcommand{\session}[1]{% 
\gdef\sessionB{#1}} 
\newcommand{\sessionB}{} 
\newcommand{\option}[1]{% 
\gdef\optionB{#1}} 
\newcommand{\optionB}{} 

\renewcommand{\maketitlehookd}{% 
\vfill{}  \large\par\noindent  
\begin{center}\juryB \bigskip\sessionB\end{center}
\vspace{-1.5cm}}
\renewcommand{\maketitlehooka}{% 
\vspace{-1.5cm}\noindent\includegraphics[height=14ex]{img/logoINP.png}\hfill\raisebox{2ex}{\includegraphics[height=7ex]{img/logoUJF.jpg}}\\
\bigskip
\begin{center} \large
Master of Science in Informatics at Grenoble \\
Master Math\'ematiques Informatique - sp\'ecialit\'e Informatique \\ 
option \optionB  \end{center}\vfill}
% End of title page formatting

\option{PDES}
\title{Efficient dynamic and static environment classification in Occupancy Grid framework}%\\\vspace{-1ex}\rule{10ex}{0.5pt} \\sub-title} 
\author{Botelho do Nascimento, Jander}
\date{20th June, 2012} % Delete this line to display the current date
\jury{
Research project performed at Inria \\\medskip
Under the supervision of:\\
Dr. Qadeer Baig (\texttt{qadeer.baig@inria.fr}), Inria \\
Dr. Mathias Perrollaz (\texttt{mathias.perrollaz@inria.fr}), Inria \\\medskip
Defended before a jury composed of:\\
Dr. Martin Heusse (president)\\
Dr. Florence Maraninchi (co-president)\\
Dr. Noel De-Palma (volant)\\
Dr. Trung-Dung Vu (external expert)\\
%$[$Prof/Dr/Mrs/Mr$]$ $<$first-name last-name$>$\\
}
\session{June\hfill 2012}


%%% BEGIN DOCUMENT
\begin{document}
\selectlanguage{english} % french si rapport en franais
\frontmatter
\begin{titlingpage}
\setcounter{tocdepth}{3}
\maketitle
\end{titlingpage}

%\small
\setlength{\parskip}{-1pt plus 1pt}

\input{abstract.tex}
%\end{abstract}
%\abstractintoc
%\renewcommand\abstractname{R\'esum\'e}
%\begin{abstract} \selectlanguage{french}
%Texte 
%\end{abstract}
%\selectlanguage{english}% french si rapport en franais

\cleardoublepage

\tableofcontents* 

\normalsize

\mainmatter
\SingleSpace

\chapter{Introduction} 
	\input{chapter01.tex}

%=====================
	
\chapter{Problem Statement and State of the Art}
	\input{chapter02.tex}

%=====================

\chapter{Motion Detection}
	\input{chapter03.tex}

%=====================

\chapter{Implementation and Results}
	\input{chapter04.tex}
	
%=====================

\chapter{Conclusion}
	\input{chapter05.tex}
	
%=====================

\backmatter

%\bibliographystyle{plain}
\bibliographystyle{unsrt}
\bibliography{report}{}

\end{document}




